Skip to main content

Assign contact

PATCH 

/baskets/:id/assign-contact

Assigns the signed in contact to the basket. You must call this endpoint if the user signs in after basket creation, to ensure that the basket is associated with the correct contact and that the customer is not asked to enter unnecessary customer detail fields.

Request

Path Parameters

    id stringrequired

    The id of the basket

Header Parameters

    x-api-key stringrequired

    The API key for the given store

Responses

No content if the contact is assigned and there are no providers in the basket that support contacts on their end. If there are providers that support contacts, then a notification response will be returned that will be completed once the provider systems have been updated with the contact details. If there are any problems encountered trying to assign the contact, then a problem details response will be returned.

Schema
    notificationId stringrequired

    The id of a notification that represents this asynchronous request. OneBasket will be processing the request in the background, and upon completion this notification will be updated with the result.

Loading...